﻿/*CREATE TRIGGER [dbo].[JuntasParametros_DeletionTrigger] 
    ON [JuntasParametros] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[JuntasParametros_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[JuntasParametrosGuid] = [JuntasParametros_Tombstone].[JuntasParametrosGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[JuntasParametros_Tombstone] 
    ([JuntasParametrosGuid], DeletionDate)
    SELECT [JuntasParametrosGuid], GETUTCDATE()
    FROM deleted 
END*/